import pose_recognition as pr

video_path = "C:\\Users\lx\Desktop\\fencing\\face_recognition\\test\\video\Pixel_Low.mp4"  # 替换为你的视频路径
# video_path = "video\\right_Ready position.mp4"
# video_path = "video\\right2.mp4"
side = int(input("选择需要识别的人(左边的人=1，右边的人=2，单人视频=0)"))
height_real = int(input("请输入真实身高"))


detector = pr.PoseDetector(video_path,height_real,side)
# 启动动画
detector.start_animation()
try:
    detector.__del__()
    print("运行完成")
except Exception:
    detector.__del__()
    print("运行完成")





# def startcode(videoInput, sideInput, heightInput):
#     video_path = videoInput  # 替换为你的视频路径
#     # video_path = "video\\right_Ready position.mp4"
#     # video_path = "video\\right2.mp4"
#     side = sideInput
#     height_real = heightInput


#     detector = pr.PoseDetector(video_path,height_real,side)
#     # 启动动画
#     detector.start_animation()
#     try:
#         detector.__del__()
#     except Exception:
#         detector.__del__()
